package com.ruoyi.order.service.impl;

import java.util.List;

import com.ruoyi.order.domain.ShopCommoditye;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.ShopGoodseMapper;
import com.ruoyi.order.domain.ShopGoodse;
import com.ruoyi.order.service.IShopGoodseService;

/**
 * 商品列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-07
 */
@Service
public class ShopGoodseServiceImpl implements IShopGoodseService 
{
    @Autowired
    private ShopGoodseMapper shopGoodseMapper;

    /**
     * 栏目 选择
     * @return
     */
    @Override
    public List<ShopCommoditye> shopCommodityeSelect() {
        return shopGoodseMapper.shopCommodityeSelect();
    }

    /**
     * 查询商品列表
     * 
     * @param id 商品列表主键
     * @return 商品列表
     */
    @Override
    public ShopGoodse selectShopGoodseById(Integer id)
    {
        return shopGoodseMapper.selectShopGoodseById(id);
    }

    /**
     * 查询商品列表列表
     * 
     * @param shopGoodse 商品列表
     * @return 商品列表
     */
    @Override
    public List<ShopGoodse> selectShopGoodseList(ShopGoodse shopGoodse)
    {
        return shopGoodseMapper.selectShopGoodseList(shopGoodse);
    }

    /**
     * 新增商品列表
     * 
     * @param shopGoodse 商品列表
     * @return 结果
     */
    @Override
    public int insertShopGoodse(ShopGoodse shopGoodse)
    {
        return shopGoodseMapper.insertShopGoodse(shopGoodse);
    }

    /**
     * 修改商品列表
     * 
     * @param shopGoodse 商品列表
     * @return 结果
     */
    @Override
    public int updateShopGoodse(ShopGoodse shopGoodse)
    {
        return shopGoodseMapper.updateShopGoodse(shopGoodse);
    }

    /**
     * 批量删除商品列表
     * 
     * @param ids 需要删除的商品列表主键
     * @return 结果
     */
    @Override
    public int deleteShopGoodseByIds(Integer[] ids)
    {
        return shopGoodseMapper.deleteShopGoodseByIds(ids);
    }

    /**
     * 删除商品列表信息
     * 
     * @param id 商品列表主键
     * @return 结果
     */
    @Override
    public int deleteShopGoodseById(Integer id)
    {
        return shopGoodseMapper.deleteShopGoodseById(id);
    }
}
